home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ddddmmmmFFFFXXXXAAAAllllllllooooccccaaaatttteeeeIIIImmmmaaaaggggeeeeBBBBuuuuffffffffeeeerrrrssss((((3333ddddmmmm)))) ddddmmmmFFFFXXXXAAAAllllllllooooccccaaaatttteeeeIIIImmmmaaaaggggeeeeBBBBuuuuffffffffeeeerrrrssss((((3333ddddmmmm))))
-
-
-
- NNNNAAAAMMMMEEEE
- ddddmmmmFFFFXXXXAAAAllllllllooooccccaaaatttteeeeIIIImmmmaaaaggggeeeeBBBBuuuuffffffffeeeerrrrssss, ddddmmmmFFFFXXXXFFFFrrrreeeeeeeeIIIImmmmaaaaggggeeeeBBBBuuuuffffffffeeeerrrrssss - create and destroy image
- buffers for special effects
-
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////ffffxxxx____bbbbuuuuffffffffeeeerrrr....hhhh>>>>
-
- DDDDMMMMssssttttaaaattttuuuussss ddddmmmmFFFFXXXXAAAAllllllllooooccccaaaatttteeeeIIIImmmmaaaaggggeeeeBBBBuuuuffffffffeeeerrrrssss
- (((( DDDDiiiissssppppllllaaaayyyy**** ddddppppyyyy,,,,
- ccccoooonnnnsssstttt DDDDMMMMppppaaaarrrraaaammmmssss**** iiiimmmmaaaaggggeeeeFFFFoooorrrrmmmmaaaatttt,,,,
- iiiinnnntttt iiiinnnnppppuuuuttttUUUUssssaaaaggggeeee,,,,
- iiiinnnntttt oooouuuuttttppppuuuuttttUUUUssssaaaaggggeeee,,,,
- iiiinnnntttt nnnnuuuummmmbbbbeeeerrrrOOOOffffBBBBuuuuffffffffeeeerrrrssss,,,,
- DDDDMMMMffffxxxxbbbbuuuuffffffffeeeerrrr**** rrrreeeettttuuuurrrrnnnnBBBBuuuuffffffffeeeerrrrssss[[[[]]]] ))))
-
- vvvvooooiiiidddd ddddmmmmFFFFXXXXFFFFrrrreeeeeeeeIIIImmmmaaaaggggeeeeBBBBuuuuffffffffeeeerrrrssss
- (((( iiiinnnntttt nnnnuuuummmmbbbbeeeerrrrOOOOffffBBBBuuuuffffffffeeeerrrrssss,,,,
- DDDDMMMMffffxxxxbbbbuuuuffffffffeeeerrrr**** bbbbuuuuffffffffeeeerrrrssss[[[[]]]] ))))
-
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
- _d_p_y An open connection to an X server. Used to create
- off-screen render areas for OpenGL. The caller must
- not close the display connection until all of the
- DMfxbuffers have been freed.
-
- _i_m_a_g_e_F_o_r_m_a_t A complete image format parameter list (see
- ddddmmmmSSSSeeeettttIIIImmmmaaaaggggeeeeDDDDeeeeffffaaaauuuullllttttssss((((3333ddddmmmm))))). This format is used to
- determine how large the buffers need to be.
-
- _i_n_p_u_t_U_s_a_g_e Specifies the modes in which the buffer will be used as
- input; says how the image will be read from the buffer
- and used as input to a plug-in or application. The
- value is a bitwise combination of one or more of:
- bbbbuuuuffffIIIInnnnppppuuuuttttDDDDiiiirrrreeeecccctttt, bbbbuuuuffffIIIInnnnppppuuuuttttTTTTeeeexxxxttttuuuurrrreeee, bbbbuuuuffffIIIInnnnppppuuuuttttDDDDrrrraaaawwwwPPPPiiiixxxxeeeellllssss,
- bbbbuuuuffffIIIInnnnppppuuuuttttMMMMoooovvvviiiieeee. The options set must include all of the
- different ways in which the buffer will be used.
-
- _o_u_t_p_u_t_U_s_a_g_e Specifies the modes in which the buffer will be used as
- output; says how the image will be placed into the
- buffer by a plug-in or application. the value is a
- bitwise combination of one or more of bbbbuuuuffffOOOOuuuuttttppppuuuuttttDDDDiiiirrrreeeecccctttt,
- bbbbuuuuffffOOOOuuuuttttppppuuuuttttOOOOppppeeeennnnGGGGLLLL, bbbbuuuuffffOOOOuuuuttttppppuuuuttttmmmmoooovvvviiiieeee. The options set must
- include all of the different ways in which the buffer
- will be used.
-
- _n_u_m_b_e_r_O_f_B_u_f_f_e_r_s The number of buffers to be allocated or freed.
-
- _r_e_t_u_r_n_B_u_f_f_e_r_s A pointer to an array of DDDDMMMMffffxxxxbbbbuuuuffffffffeeeerrrr****, which will be
- filled in.
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- ddddmmmmFFFFXXXXAAAAllllllllooooccccaaaatttteeeeIIIImmmmaaaaggggeeeeBBBBuuuuffffffffeeeerrrrssss((((3333ddddmmmm)))) ddddmmmmFFFFXXXXAAAAllllllllooooccccaaaatttteeeeIIIImmmmaaaaggggeeeeBBBBuuuuffffffffeeeerrrrssss((((3333ddddmmmm))))
-
-
-
- _b_u_f_f_e_r_s A pointer to an array of DDDDMMMMffffxxxxbbbbuuuuffffffffeeeerrrr****.
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- ddddmmmmFFFFXXXXAAAAllllllllooooccccaaaatttteeeeIIIImmmmaaaaggggeeeeBBBBuuuuffffffffeeeerrrrssss creates buffers for use with the special-effects
- plugin manager. The buffers it creates can be used to efficiently pass
- images to an from image processing plugins.
-
- The input and output usage given are used to determine the
- characteristics of the buffers to be allocated. For example, when the
- bbbbuuuuffffOOOOuuuuttttppppuuuuttttOOOOppppeeeennnnGGGGLLLL bit is set, the buffers created will be suitable for
- OpenGL rendering. An application can determine values for input and
- output usage by examining the input and output usage of all of the
- plugins to be used and or-ing them together.
-
- On many SGI machines, image buffers for special effects processing take
- advantage of special hardware resources associated with graphical
- rendering. These resources are frequently in short supply. An
- application that uses special effects should avoid holding image buffers
- unnecessarily. For example, when the application is iconized, it should
- release these image buffers.
-
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS
- ddddmmmmFFFFXXXXAAAAllllllllooooccccaaaatttteeeeIIIImmmmaaaaggggeeeeBBBBuuuuffffffffeeeerrrrssss will either create all of the buffers requested
- and return DDDDMMMM____SSSSUUUUCCCCCCCCEEEESSSSSSSS, or will create no buffers and return DDDDMMMM____FFFFAAAAIIIILLLLUUUURRRREEEE.
- In the case of failure, error information can be obtained from
- ddddmmmmGGGGeeeettttEEEErrrrrrrroooorrrr((((3333ddddmmmm)))).
-
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEE
- This will combine the usage bits for a number of filter plugins and then
- a pair of buffers that can be used with any of them:
-
- DMparams* imageFormat;
- DMplugin* plugins[];
- int pluginCount;
- int in; /* combined input usage */
- int out; /* combined output usage */
- int i;
- DMfxbuffer buffers[2];
-
- /* get the list of plugins to use */
- ...
-
- /* combine the usage bits of all of the plugins */
- in = 0;
- out = 0;
- for ( i = 0; i < pluginCount; i++ )
- {
- in |= pmGetSourceAUsage( plugins[i] );
- out |= pmGetDestUsage ( plugins[i] );
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- ddddmmmmFFFFXXXXAAAAllllllllooooccccaaaatttteeeeIIIImmmmaaaaggggeeeeBBBBuuuuffffffffeeeerrrrssss((((3333ddddmmmm)))) ddddmmmmFFFFXXXXAAAAllllllllooooccccaaaatttteeeeIIIImmmmaaaaggggeeeeBBBBuuuuffffffffeeeerrrrssss((((3333ddddmmmm))))
-
-
-
- }
-
- /* allocate two buffers */
- if ( dmFXAllocateImageBuffers( imageFormat, in, out, 2,
- buffers ) != DM_SUCCESS )
- {
- /* allocation failed */
- }
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- dmFXMovieRenderImage(3dm), dmFXSetupInputImageBuffer(3dm),
- dmFXSetupScanlineBuffer(3dm), dmGetError(3dm).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-